package oop;

import oop.pat.Student;

//一个程序，应当只有一个main方法
public class Application {

    public static void main(String[] args) {
        //类，抽象的，实例化
        //实例化返回一个自己的对象
        Student ming = new Student();
        Student hon = new Student();

        System.out.println(ming.name);
        System.out.println(ming.age);

        hon.age = 8;
        hon.name = "小红";
        System.out.println(hon.age+"岁的"+hon.name);
    }
}
